#ifndef _STRAWGUI_COMPONENT_OBJECT_WITH_TEXT_H_
#define _STRAWGUI_COMPONENT_OBJECT_WITH_TEXT_H_

#include "sComponentObject.h"

namespace sgui
{
namespace res
{

class sObjectLabel : public sComponentObject
{
private:
    std::wstring                    m_text;
public:
    static const std::wstring OBJECT_CLASS;

	inst::sComponentInstance* getInstance(sGUI& gui, inst::sComponentInstance* parent = NULL);

    const std::wstring& getText() const { return m_text; }
    void setText(const std::wstring& text) { m_text = text; }

    void load(db::Record &file);
    void save(db::Record &file) const;
    void clear();

#ifdef _EDITOR
	void exportRTTI(rtti::sInfoList& list);
#endif
    const std::wstring getClass() const { return OBJECT_CLASS; }

    sObjectLabel(sGUI& gui, const std::wstring& name);
};

};
};

#endif